home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / samples / api / makefile < prev    next >
Encoding:
Makefile  |  1997-01-17  |  2.1 KB  |  77 lines

  1. #*      makefile
  2. #*
  3. #* Make script for MIDAS DLL API examples
  4. #*
  5. #* Copyright 1996,1997 Housemarque Inc.
  6. #*
  7. #* This file is part of the MIDAS Sound System, and may only be
  8. #* used, modified and distributed under the terms of the MIDAS
  9. #* Sound System license, LICENSE.TXT. By continuing to use,
  10. #* modify or distribute this file you indicate that you have
  11. #* read the license and understand and accept it fully.
  12. #*
  13.  
  14. # Directories:
  15. MIDASDIR = ..\..
  16. MIDASINCDIR = $(MIDASDIR)\include
  17. MIDASLIBDIR = $(MIDASDIR)\lib
  18.  
  19.  
  20. # Set up compiler (actually compile & link program):
  21.  
  22. !ifdef DOS              # ---------------------------------------------------
  23.  
  24. # We'll be compiling for DOS with Watcom C:
  25. CL = wcl386
  26.  
  27. # Options: Warning level 3, all warnings are errors, SS!=DGROUP,
  28. # DS pegged to DGROUP, DOS code, include directory, linker case sensitive
  29. CLOPTS = -w3 -we -zu -zdp -bt=dos -i=$(MIDASINCDIR) -"option caseexact"
  30.  
  31. # DOS library:
  32. LIBFILE = $(MIDASLIBDIR)\midasdos.lib
  33.  
  34. !else
  35.  
  36. !ifdef VISUALC          # ---------------------------------------------------
  37.  
  38. # We'll be compiling for Win32 with Visual C:
  39. CL = cl
  40.  
  41. # Options: Use threaded RTL, warning level 3, warnings are errors,
  42. # struct packing at byte boundaries, no logo (be quiet), include directory
  43. CLOPTS = -MT -W3 -WX -Zp1 -nologo -I$(MIDASINCDIR)
  44.  
  45. # Visual C import library for DLL:
  46. LIBFILE = $(MIDASLIBDIR)\mds06rc1_visualc.lib
  47.  
  48. !else                   # ---------------------------------------------------
  49.  
  50. # We'll be compiling for Win32 with Watcom C:
  51. CL = wcl386
  52.  
  53. # Options: Warning level 3, all warnings are errors, NT code, include dir
  54. CLOPTS = -w3 -we -bt=nt -i=$(MIDASINCDIR)
  55.  
  56. # Watcom import library for DLL:
  57. LIBFILE = $(MIDASLIBDIR)\mds06rc1_watcom.lib
  58.  
  59. !endif
  60.  
  61. !endif
  62.  
  63.  
  64. # Targets:
  65.  
  66. all :           effects.exe all.exe module.exe
  67.  
  68.  
  69. all.exe :       all.c
  70.                 $(CL) $(CLOPTS) all.c $(LIBFILE)
  71.  
  72. effects.exe :   effects.c
  73.                 $(CL) $(CLOPTS) effects.c $(LIBFILE)
  74.  
  75. module.exe :    module.c
  76.                 $(CL) $(CLOPTS) module.c $(LIBFILE)
  77.